import requests


def get_webpage_content(url):
    response = requests.get(url)
    if response.status_code == 200:  # 200表示请求成功
        return response.text  # 返回网页的HTML内容
    else:
        print(f"Unable to fetch content. HTTP response code: {response.status_code}")
        return None

    # 使用示例


url = "https://www.sanchuangedu.cn/wgyc.png"  # 请替换为你想要爬取的网页地址
content = get_webpage_content(url)
if content is not None:
    print(content)